﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace MorphismTheme
{
    public enum TextBoxStyle
    {
        Standard,
    }

    public class TextBoxExtension
    {
        #region TextBoxStyle
        public static TextBoxStyle GetTextBoxStyle(DependencyObject obj)
        {
            return (TextBoxStyle)obj.GetValue(TextBoxStyleProperty);
        }

        public static void SetTextBoxStyle(DependencyObject obj, TextBoxStyle value)
        {
            obj.SetValue(TextBoxStyleProperty, value);
        }

        public static readonly DependencyProperty TextBoxStyleProperty =
            DependencyProperty.RegisterAttached("TextBoxStyle", typeof(TextBoxStyle), typeof(TextBoxExtension), new PropertyMetadata(TextBoxStyle.Standard));
        #endregion

        #region CornerRadius
        public static CornerRadius GetCornerRadius(DependencyObject obj)
        {
            return (CornerRadius)obj.GetValue(CornerRadiusProperty);
        }

        public static void SetCornerRadius(DependencyObject obj, CornerRadius value)
        {
            obj.SetValue(TextBoxStyleProperty, value);
        }

        public static readonly DependencyProperty CornerRadiusProperty =
            DependencyProperty.RegisterAttached("CornerRadius", typeof(CornerRadius), typeof(TextBoxExtension), new PropertyMetadata(new CornerRadius(0,0,0,0)));
        #endregion
    }
}
